package cn.tedu.blog.server.quartz;


import cn.tedu.blog.server.service.ISearchService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;

public class LoadArticleJob implements Job {

    @Autowired
    private ISearchService searchService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        searchService.loadArticleByPage();
        System.out.println("定时加载文章完成");
    }
}
